#ifndef SLOVEREVISIONNOTFOUNDDIALOG_H
#define SLOVEREVISIONNOTFOUNDDIALOG_H

#include <ProcInfoUtils.h>
#include <QDialog>
#include <QProcess>
#include <QTimer>

namespace Ui {
class SloveRevisionNotFoundDialog;
}

class SloveRevisionNotFoundDialog : public QDialog
{
    Q_OBJECT

public:
    explicit SloveRevisionNotFoundDialog(QWidget *parent = nullptr);
    ~SloveRevisionNotFoundDialog();

    void setWorkdir(const QString &newWorkdir);
    void setPath(const QString &newPath);
    void setRemote(const QString &newRemote);
    void setRevision(const QString &newRevision);

    void start();

signals:
    void fetched();

private:
    Ui::SloveRevisionNotFoundDialog *ui;

    QProcess m_process;
    QString m_workdir;

    QString m_path;
    QString m_remote;
    QString m_revision;

    ProcInfoUtils m_procinfo;
    QTimer m_procinfo_timer;
};

#endif // SLOVEREVISIONNOTFOUNDDIALOG_H
